package tr.com.oyunus.server.command;

import java.util.HashMap;
import java.util.Map;


public class Command {
    private int id;
    private String token;
    private String function;
    private Map<String,String> params = new HashMap<String, String>();

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public void setParams(Map<String, String> params) {
        this.params = params;
    }
    
    public void addParam (String key, String value){
        params.put(key,value);          
    }
    public String getParam (String key){
        return params.get(key);
    }
}
                                       